package com.itstyle.quartz.entity;

import lombok.Data;
import java.util.*;

@Data
public class Menu {
    private String menuId;
    private String menuName;
    private String parentId;
    private String url;

    private List<Menu> children= new ArrayList<Menu>();

    public Menu(String menuId, String menuName, String parentId,String url) {
        this.menuId = menuId;
        this.menuName = menuName;
        this.parentId = parentId;
        this.url = url;
        this.children = new ArrayList<Menu>();
    }


    @Override
    public String toString() {
        return "Menu{" +
                "menuId=" + menuId +
                ", menuName='" + menuName + '\'' +
                ", parentId=" + parentId +
                ", url=" + url +
                ", children=" + children.size() +
                '}';
    }



}
